package cn.funeralobjects.youtube.dl.extension.controller;

import cn.funeralobjects.youtube.dl.extension.utils.RunningLogUtils;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @author FuneralObjects
 * Create date: 2020/4/10 11:11 AM
 */
@RestController
@RequestMapping("/logs")
public class LogsController {

    @GetMapping("/{id}/{format}")
    public String logs(@PathVariable String id, @PathVariable String format) {
        return RunningLogUtils.read(id, format);
    }
}
